import request from '@/utils/request'

// 合作商列表
export const getpartner = params => {
  return request.get('/user-service/partner/search', {
    params
  })
}
// 新增合作商
export const addPartner = data => request.post('/user-service/partner', data)
// 重置密码
export const resettingPartner = id => request.put(`/user-service/partner/resetPwd/${id}`)
// 修改详情
export const xgPartnerlist = data => request.put(`/user-service/partner/${data.id}`, data)
// 删除合作商
export const delPortnerList = id => request.delete(`/user-service/partner/${id}`)
